package com.cfpl.project_common.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

/**
 * 果蔬进场
 * @TableName vegetable_entry
 */
@TableName(value ="vegetable_entry")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class VegetableEntry implements Serializable {
    /**
     * 果蔬进场id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 果蔬名称
     */
    @NonNull
    @ApiModelProperty(required = true)
    private String vegetableName;

    /**
     * 种植地
     */
    @NonNull
    @ApiModelProperty(required = true)
    private String plantLocation;

    /**
     * 进场日期
     */
    @NonNull
    @ApiModelProperty(required = true)
//    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date purchaseDate;

    /**
     * 进场批次
     */
    private String purchaseBatch;

    /**
     * 数量,单位为斤
     */
    @NonNull
    @ApiModelProperty(required = true)
    private String quantity;

    /**
     * 储存方式,比如:冷藏或常温
     */
    @NonNull
    @ApiModelProperty(required = true)
    private String storageMethod;


    /**
     * 负责人编号
     */
    private Long adminId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}